<%# loop through and show posts -%>
<% for post in @posts -%>
    <%= render :partial => 'posts/item', :locals => {:post => post} %>
<% end -%>